﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InfiniteConvergentSeries
{
    class Fraction
    {
        public long nominator = 0;
        public long denominator = 1;

        public Fraction(long nominator, long denominator)
        {
            this.nominator = nominator;
            this.denominator = denominator;
        }

        public static explicit operator double(Fraction fraction)
        {
            return (double)fraction.nominator / (double)fraction.denominator;
        }
    }
}
